import logging

from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status

logger = logging.getLogger(__name__)


class HelloView(APIView):
    """
    A simple APIView for returning a greeting.
    """

    def get(self, request):
        """
        Return a list of all users.
        """
        logger.info('HelloView.get')
        content = {
            'message': 'Hello, welcome to the API!'
        }
        return Response(content, status=status.HTTP_200_OK)
